package models;

import java.util.*;
import javax.persistence.*;
import play.db.jpa.Model;

@Entity
public class PromotedIdea extends Model {
	public String title;
	@OneToMany
	public List<Task> tasks;
	@ManyToMany
	public List<User> users;
	@OneToOne
	public Idea idea;

public PromotedIdea(Idea idea)
{
tasks=new ArrayList<Task>();
users=new ArrayList<User>();
this.idea=idea;
title=this.idea.title;
}

}
